package com.spj.dao;

import java.util.ArrayList;

import com.spj.pojo.Cart;
import org.apache.ibatis.annotations.Param;


public interface CartDao {
	void insertToCart(Cart cart);
	Cart findCartOfOneBook(Cart cart);
	void addCartNums(@Param("nums")int nums,@Param("id")int id);
	void updateCartNums(@Param("nums")int nums,@Param("id")int id);
	ArrayList<Cart> getAllCarts(int userid);
	int countsOfCart(int id);
	void deleteCart(@Param("id")int id);
	ArrayList<Cart> getCheckedCarts(int[] ins);
}
